# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=aesfix
pkgver=1.0.1
pkgrel=6
groups=('blackarch' 'blackarch-cracker' 'blackarch-forensic')
pkgdesc='A tool to find AES key in RAM.'
arch=('x86_64' 'aarch64')
url='http://citp.princeton.edu/memory/code/'
license=('BSD')
source=("http://citpsite.s3-website-us-east-1.amazonaws.com/oldsite-htdocs/memory-content/src/$pkgname-$pkgver.tar.gz")
sha512sums=('5a50ff0bd13ec5925547072e8a1e417cc1e17b1dd59de22cc573efad4563f44e5264e87658aec5f36e9dc179685913b96d3301111a72678df453682941d783b0')

build() {
  cd $pkgname

  make
}

package(){
  cd $pkgname

  install -dm 755 "$pkgdir/usr/share/$pkgname"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

  cp -a samples "$pkgdir/usr/share/$pkgname/"
}

